public function setQueryVariable(string $key, string $value)
    {
        if (empty($value))
            unset($this->query[$key]);
        else
            $this->query[$key] = $value;
        return $this;
    }