public function checkConnection() { $connection = false; try { $connection = true; } catch (\Exception $e) { } return $connection; }