code: private function canRunDbQuery(): bool
      {
          try {
              return $this->connection->isConnected() && $this->connection->getSchemaManager()->tablesExist(['tl_cron']);
          } catch (DriverException $e) {
              return false;
          }
      }
docs: Checks if a database connection can be established and the table exist.