public function checkConnection()
{
$connection = false;
if ($this->_api != null && $this->_dev != null) {
$today = new \DateTime();
try {
$number = self::returnApiData("https://api.clickbank.com/rest/1.3/orders/count?startDate=" . $today->format("Y-m-d") . "&endDate=" . $today->format("Y-m-d"));
$connection = true;
} catch (\Exception $e) {
}
}
return $connection;
}