Comparisons against None should always use is

instead of the '==' equality operator.