private function createTableIfNotExists(OODBBean $bean, $table) { //Does table exist? If not, create if (!$this->tableExists($this->writer->esc($table, TRUE))) { $this->writer->createTable($table); $bean->setMeta('buildreport.flags.created', TRUE); } }