Guide133.6K views3,902 votes0 replies2,916 following
Handlebars {{#if}} Treats Empty Arrays as Truthy: Diagnostic Guide
Handlebars {{#if}} treats empty arrays and objects as truthy, so empty collections can render content you expected to hide. Use .length or a custom helper to test collections reliably.