public function hasSchema()
{
$tables = $this->connection->query("SELECT table_name FROM information_schema.tables WHERE table_schema = '{$this->schemaName}';");
while ($table = $tables->fetchColumn()) {
if ($table == $this->tableName) {
return true;
}
}
return false;
}