ejs is a little finicky about undefined variables so to be safe when checking for false best to also check for existence with ` if (!locals.extension) ` here and on line 17 -- see line 3