Fix inverted isInherited method