public function getCookie(
        string $scope,
        string $name,
        string $path = "",
        string $domain = "",
        bool $secure = false,
        bool $httponly = false
    ) {
        if (isset($_COOKIE[$name])) {
            if ($this->canSet($scope)) {
                return $_COOKIE[$name];
            }

            setcookie($name, "", time() - 360, $path, $domain, $secure, $httponly);
        }

        return null;
    }