diff --git a/lib/handlebars/compiler.js b/lib/handlebars/compiler.js index 5e5e37e2..d1e44452 100644 --- a/lib/handlebars/compiler.js +++ b/lib/handlebars/compiler.js @@ -91,7 +91,7 @@ Handlebars.registerHelper('each', function(context, fn, inverse) { }); Handlebars.registerHelper('if', function(context, fn, inverse) { - if(context === false || context == null) { + if(!context || context === []) { return inverse(this); } else { return fn(this);