Provide a way to match a category and its parents