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?
// if lis
If you have something that you want to display once and only if the array has data, use
{{#if items.length}} //Render {{/if}}
.length will return 0 for empty arrays so we have achieved a real falsey value.
.length