In PHP you use the === notation to test for TRUE or FALSE distinct from 1 or 0.
===
TRUE
FALSE
1
0
For example i
i
if something is False:
is what you should do
if something is None:
also works
the moral is use is ... (although you should never do something is 123457, or simillar)
is
something is 123457
for why you should never do this with ints and things see http://ideone.com/iKmWCn