public function checkConnection()
{
//If not login properly the construct launch an exception
$connection = false;
$urls = array();
$urls[] = new \Oara\Curl\Request('http://cheggaffiliateprogram.com/Home.aspx?', array());
$exportReport = $this->_client->get($urls);
if (\preg_match('/Welcome\\/Logout\\.aspx/', $exportReport[0])) {
$connection = true;
}
return $connection;
}