private function validateTemplateTypeInput() { if ($this->templateTypeNotValid($this->templateType)) { $this->error($this->templateType . ' is not a valid type'); die; } }