When comparing to `None` you should use this pattern:

    if condition is None:

Because otherwise you can run into issues where an object has a `__eq__` that compares to `None` and the condition would not hold.