if(empty($var1)){ echo 'This line is printed, because the $var1 is empty.'; }
empty var php
empty($var)