protected function tableExists($name)
{
// We only should check each table once.
if (isset($this->tables[$name])) {
return true;
}
if ($this->app['db']->getSchemaManager()->tablesExist([$name]) === true) {
return $this->tables[$name] = true;
}
return false;
}