public function has($name)
    {
        $key = mb_strtolower($name);
        foreach ($this->cookies as $cookie) {
            if (mb_strtolower($cookie->getName()) === $key) {
                return true;
            }
        }

        return false;
    }
public function has($name)
    {
        $key = mb_strtolower($name);
        foreach ($this->cookies as $cookie) {
            if (mb_strtolower($cookie->getName()) === $key) {
                return true;
            }
        }

        return false;
    }
public function has ( $ name ) { $ key = mb_strtolower ( $ name ) ; foreach ( $ this -> cookies as $ cookie ) { if ( mb_strtolower ( $ cookie -> getName ( ) ) === $ key ) { return true ; } } return false ; }
Check if a cookie with the given name exists

@param string $name The cookie name to check.
@return bool True if the cookie exists, otherwise false.
Check if a cookie with the given name exists