Check if component is in the specified category.
an Component object
the specified category to check
true if the component is in the specified category.