public function checkConnection()
{
//If not login properly the construct launch an exception
$connection = true;
$urls = array();
$valuesLogin = array(new \Oara\Curl\Parameter('agentcode', $this->_credentials['user']), new \Oara\Curl\Parameter('pword', $this->_credentials['password']));
$loginUrl = 'https://www.parkandgo.co.uk/agents/';
$urls[] = new \Oara\Curl\Request($loginUrl, $valuesLogin);
$exportReport = $this->_client->post($urls);
if (!\preg_match("/Produce Report/", $exportReport[0], $match)) {
$connection = false;
}
return $connection;
}