Why a string? Even 'false' would be true if nunjucks acts like Jinja. Also, folder → isFolder.