public function checkConnection()
{
$connection = false;
$urls = array();
$urls[] = new \Oara\Curl\Request("{$this->_extension}/affiliate_home.html", array());
$exportReport = $this->_client->get($urls);
$doc = new \DOMDocument();
@$doc->loadHTML($exportReport[0]);
$xpath = new \DOMXPath($doc);
$results = $xpath->query('//*[contains(concat(" ", normalize-space(@class), " "), " logout ")]');
if ($results->length > 0) {
$connection = true;
}
return $connection;
}