check if category exists before importing