moved the conditional statement out of import_categories_from_array and into check_categories_for_import