Check superclass when class is created