public function check($name) {
        // is in cache?
        if(isset($this->cache[$name]))
            return true;

        return $this->cookies->has($name);
    }
public function check($name) {
        // is in cache?
        if(isset($this->cache[$name]))
            return true;

        return $this->cookies->has($name);
    }
public function check ( $ name ) { // is in cache? if ( isset ( $ this -> cache [ $ name ] ) ) return true ; return $ this -> cookies -> has ( $ name ) ; }
Check if the cookie exists

@param string $name The name of the cookie.
@return boolean
Check if the cookie exists