title: How to check if array is empty - true or false
body: <p>I have a question, how do I put a condition for a function that returns <code>true</code> or <code>false</code>, if I am sure that the array is empty, but <code>isset()</code> passed it.</p>
  
  <pre><code>$arr = array();
  
  if (isset($arr)) {
      return true;
  } else {
      return false;
  }
  </code></pre>
  
  <p>In this form returns <code>bool(true)</code> and <code>var_dump</code> shows <code>array (0) {}</code>.</p>