grammar->compileTableExists(); $schema = $this->connection->getConfig('schema'); $table = $this->connection->getTablePrefix().$table; return count($this->connection->select($sql, [$schema, $table])) > 0; } }