/** * Checks if the template is already cached. * @return bool */ public function isCached() { return $this->template !== null ? $this->template->isCached() : false; }