public function isResumable(): bool
    {
        $name = $this->getName();

        if ($this->request) {
            return $this->request->cookie($name) !== null;
        }

        return isset($_COOKIE[$name]);
    }