public function query($array = false)
    {
        $query = (!empty($this->url['query']) ? $this->url['query'] : '');

        if ($array) {
            parse_str($query, $query);

            return $query;
        } else {
            return $query;
        }
    }