public function checkConnection()
{
//If not login properly the construct launch an exception
$connection = false;
$urls = array();
$urls[] = new \Oara\Curl\Request('http://affiliates.paddypartners.com/affiliates/Dashboard.aspx', array());
$exportReport = $this->_client->post($urls);
$doc = new \DOMDocument();
@$doc->loadHTML($exportReport[0]);
$xpath = new \DOMXPath($doc);
$results = $xpath->query('//*[contains(concat(" ", normalize-space(@class), " "), " lnkLogOut ")]');
if ($results->length > 0) {
$connection = true;
}
return $connection;
}