Instead of x == False, use more polymorphic not x and x is not None.
x == False
not x and x is not None