code: public function isConnected() : bool
      {
          if (isset($this->servers['all']) === true) {
              return isset($this->servers['all']['link']);
          }
  
          return isset($this->servers['read']['link']) && isset($this->servers['write']['link']);
      }
docs: Check if connected to database.
  
  @return bool true if connected