check if category exists