public function template_exists($template) { return in_array($template, $this->available_templates); }