public function isAvailable() { try { $isAvailable = $this->client->ping(); } catch (\Exception $e) { $isAvailable = false; } return $isAvailable; }