public static function check($name) {
		if (empty($name)) {
			return false;
		}

		return Hash::get($_SESSION, $name) !== null;
	}
public static function check($name) {
		if (empty($name)) {
			return false;
		}

		return Hash::get($_SESSION, $name) !== null;
	}
public static function check ( $ name ) { if ( empty ( $ name ) ) { return false ; } return Hash :: get ( $ _SESSION , $ name ) !== null ; }
Returns true if given variable is set in session.

@param string $name Variable name to check for
@return bool True if variable is there
Returns true if given variable is set in session .