In php, ($myvariable==0) When $myvariable is zero, the value of the expression is true; when $myvariable is null, the value of this expression is also true. How
($myvariable==0)
There's an is_null function, but this will just replace your $myvariable!=null
$myvariable!=null