private function tableExists(\stdClass $oModel): bool
    {
        $oDb     = Factory::service('PDODatabase');
        $oResult = $oDb->query('SHOW TABLES LIKE "' . $oModel->table_with_prefix . '"');
        return $oResult->rowCount() > 0;
    }