/** * Checks for existence of message queue tables * * Should probably examine the contents as well, but this * will do for now * @param stdClass $db * @return boolean */ private function hasQueueTables($db) { try { $db->describeTable('message'); } catch (Exception $e) { return false; } try { $db->describeTable('queue'); } catch (Exception $e) { return false; } return true; }