MAINT: not equal comparison to None