private function buildURL($url, $data = array()) { return $url . (empty($data) ? '' : '?' . http_build_query($data, '', '&')); }