PEP8: Use is instead of == when comparing to None