title: How to check if array is empty or does not exist?
body: <p>What's the best way to check if an array is empty or does not exist?</p>
  <p>Something like this?</p>
  <pre><code>if(array.length &lt; 1 || array == undefined){
      //empty
  }
  </code></pre>