src/Library/HttpFundamental/Cookie.php
public function exists($cookie_name = null)
    {
        if (!empty($cookie_name)) {
            $this->setName($cookie_name);
        }
        return isset($_COOKIE[$this->getName()]);
    }
public function exists($cookie_name = null)
    {
        if (!empty($cookie_name)) {
            $this->setName($cookie_name);
        }
        return isset($_COOKIE[$this->getName()]);
    }
public function exists ( $ cookie_name = null ) { if ( ! empty ( $ cookie_name ) ) { $ this -> setName ( $ cookie_name ) ; } return isset ( $ _COOKIE [ $ this -> getName ( ) ] ) ; }
Test if a cookie exists

@param string $cookie_name
@return bool
Test if a cookie exists