/** * Checks to see if a key exists within the current configuration. * * @access public * @param string $key * @return boolean * @static */ public static function check($key) { if ($key == 'debug') { $key = 'Debug.level'; } return Set::exists(static::$__config, (string) $key); }
/** * Check to see if a certain key/path exist in the session. * * @access public * @param string $key * @return boolean */ public function check($key) { return Set::exists($_SESSION, $key); }