Simplify this to `if($nullCheck)`