I think anInstanceOf is good. I'll make the change.