"if ... == None" -> "if ... is None"