protected function parseGet($url, $query) { $append = strpos($url, '?') === false ? '?' : '&'; return $url . $append . http_build_query($query); }