Changing '== None' to 'is None'