tableExists($preferred)) { return $preferred; } if ($db->tableExists($legacy)) { return $legacy; } return $preferred; } }