Use is_null http://de1.php.net/manual/en/function.is-null.php
It's a bit slower, but, now PHP calls it `null` but maybe in another version it becomes `NULL` and then this code might be invalid :)