private function checkConnected() { if (!$this->client->isConnected()) { $this->client->connect(); } }