Ok. I was trying to avoid `isInstanceOf`, but I guess in this case that's clearer