The first condition is redundant. And please don't compare with `False`, you have `not`.