Use `is not None` instead of `!= None`