public function checkConnection()
{
//If not login properly the construct launch an exception
$connection = false;
$urls = array();
$urls[] = new \Oara\Curl\Request('http://www.bet365affiliates.com/UI/Pages/Affiliates/?', array());
$exportReport = $this->_client->get($urls);
$doc = new \DOMDocument();
@$doc->loadHTML($exportReport[0]);
$xpath = new \DOMXPath($doc);
$results = $xpath->query('//*[contains(concat(" ", normalize-space(@id), " "), " ctl00_MasterHeaderPlaceHolder_ctl00_LogoutLinkButton ")]');
if (count($results) > 0) {
$connection = true;
}
return $connection;
}