Change to just `if (strpos($tableName, '.') !== false) {` please