Check recursive super class to prevent overflow