Change "== None" to "is None"