renamed isClass to isType