public function isValid(string $uri = ''): bool
    {
        return !empty($this->value) && $this->isNotExpired() && $this->isThere($uri);
    }
public function isValid(string $uri = ''): bool
    {
        return !empty($this->value) && $this->isNotExpired() && $this->isThere($uri);
    }
public function isValid ( string $ uri = '' ) : bool { return ! empty ( $ this -> value ) && $ this -> isNotExpired ( ) && $ this -> isThere ( $ uri ) ; }
Check whether the cookie takes effect in the url

@param string $uri

@return bool
Check whether the cookie takes effect in the url