Shouldn't this be kind_of? to also consider subclasses of Class?