prevent crash if template is falsy