Use a helper function:

~~~
check_whatever(CATEGORIES - this_categories, 'not enough categories')
check_whatever(this_categories - CATEGORIES, 'superfluous categories')
~~~