title: Check the length of an array before of to do a loop in JavaScript
body: <p>Does make sense to check if the length of the array is not equal to 0 before of to do the loop?</p>
  
  <pre><code>var arr = [1,2,3];
  if (arr.length !== 0) {
      // do loop
  }
  </code></pre>