public function hasSection($section) { if ($this->exists() && !self::$started) { $this->start(); } return !empty($_SESSION['__NF']['DATA'][$section]); }
/** * Checks if a flash session namespace exists. * @return bool */ public function hasFlashSession() { return !empty($this->params[self::FLASH_KEY]) && $this->session->hasSection('Nette.Application.Flash/' . $this->params[self::FLASH_KEY]); }