if (!is_array($this->template)) {
                throw new Exception("Invalid template specified");
            }