private function urlContainsToken($url)
    {
        // TODO: add test for this method.

        $query = parse_url($url, PHP_URL_QUERY);
        parse_str($query, $params);
        if (isset($params["token"])) {
            return true;
        } else {
            return false;
        }
    }