This question already has an answer here:
!$
in PHP?isset
and empty
?</div>
!$
means NOT
thus if (!$a)
and $a == TRUE
then it is NOT TRUE
Reference: http://www.php.net/manual/en/language.operators.logical.php
ISSET
returns TRUE
if the variable exists and has a value other than NULL
EMPTY
checks to see if a variable is empty.
Reference: http://php.net/manual/en/function.isset.php http://php.net/manual/en/function.empty.php