Check the subclass first before checking the base_class of the sti