/** * Return true if connection is open * */ public function isOpen() { return $this->client !== null && $this->client->isOpen(); }