How do check if a php session is empty?
<p>Is this bad practice?</p>

<pre><code>if($_SESSION['something'] == '') {

    echo 'the session is empty';

}
</code></pre>

<p>Is there a way to check if a its empty or b it is not set? e.g something better than...</p>

<pre><code>if(     $_SESSION['something'] == ''  ||    !isset($_SESSION['something'])   )  {

    echo 'the session is either empty or doesn't exist

}
</code></pre>

<p>OR does !isset just see if a $_SESSION exist and doesn't matter if there are values in the array?  </p>

<p>Thanks for helping a newbie</p>
