check if compostite_class is of class type

before checking if it is a subclass of `MutableComposite`