title: PHP if array is empty
body: <p>I have an array and when I print the output like so <code>print_r($userExists);</code></p>
  
  <p>it returns <code>Array ( )</code> I wrote this code to tell me if the array is empty or not:</p>
  
  <pre><code>if(isset($userExists)){
          echo 'exists';
      }else{
          echo 'does not exists';
      }
  </code></pre>
  
  <p>But regardless if the array is empty or not, it only returns <code>exists</code> What Am i doing wrong, when the array is populated, it looks like this <code>Array ( [0] =&gt; Array ( [id] =&gt; 10 ) )</code> </p>