refactor isImportToFilebase check