public static function exists($name)
    {
        if (isset($_COOKIE[$name]) && !empty($_COOKIE[$name])) {
            return true;
        } else {
            return false;
        }
    }
public static function exists($name)
    {
        if (isset($_COOKIE[$name]) && !empty($_COOKIE[$name])) {
            return true;
        } else {
            return false;
        }
    }
public static function exists ( $ name ) { if ( isset ( $ _COOKIE [ $ name ] ) && ! empty ( $ _COOKIE [ $ name ] ) ) { return true ; } else { return false ; } }
Check if a cookie exists.

@param string $name

@return bool
Check if a cookie exists .