function maybeTemplate() { if (!isset($this->fields['id'])) { $this->getEmpty(); } return isset($this->fields['is_template']); }