handlerbars.js check if list is empty
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.
The "each" tag can take an "else" section too. So the simplest form is:
{{#each items}}
// render item
{{else}}
// render empty
{{/each}}