@if(!is_null and greate than 1 code example Example 1: php check for null is_null($foo) Example 2: is null php is_null($var)