Don't check for `== None`, check for `is None` as there is only one `None` instance.