/** * Check DB connection * * @return bool */ public function hasConnection() { if (!$this->_read) { return false; } $tables = $this->_read->getTables(); if (empty($tables) || !in_array($this->_sessionTable, $tables)) { return false; } return true; }