add a method to check for the presence of an object in a category