Check if $t->template for $template, $template is null!