check wheather note or category is existed