how can I do if condition in php with multiple conditions in php : I have 4 $var
how can i do this :

    $x1='on';
    $x2='';
    $x3='';
    $x4='';
    if $x1=='on' and $x2 is empty and $x3 is empty and $x4 is empty , do this else do that ?