I wrote a simple test:
$test = null;
if ($test == null) print 'is null';
else print 'not null';
This prints out: "is null". Problem is, I changed it to this:
$test = 0;
if ($test == null) print 'is null';
else print 'not null';
And it still prints out null? Why?