fix typo, none check

typo is obvious; "is not None" is more pythonic