title: handlerbars.js check if list is empty
body: <p>Is there a way in Handlebars.js templating to check if the collection or list is null or empty, before going and iterating through the list/collection?</p>
  
  <pre><code>// if list is empty do some rendering ... otherwise do the normal
  {{#list items}}
  
  {{/list}}
  
  
  
  {{#each items}}
  
  {{/each}}
  </code></pre>