If we use the get method, we get None if the key does not exist.

examples/dictionary/get_key.py
from __future__ import print_function

user = {
    'fname': 'Foo',
    'lname': 'Bar',
}

print(user.get('fname'))
print(user.get('email'))

# Foo
# None

None will be interpreted as False, if checked as a boolean.