/** * Check if a Template Variable Exists * * @note The PRESENCE of key is tested, not its value * * @param string $tplVar * Template Variable to be tested * * @return boolean * TRUE if desired Template Variable exists and FALSE otherwise * * @throws Next\View\ViewException * Testing existence of internal properties */ public function __isset($tplVar) { if (substr($tplVar, 0, 1) == '_' && $tplVar != self::CONTROLLER_EXCEPTION) { throw ViewException::unnecessaryTest(); } return array_key_exists($tplVar, $this->_tplVars); }