Small guard checks for template.