I’m referring to the code with which must execute to return true/false.
I dislike instanceof too, I never use it eventually.
It always seems to me that code like that wants to be as general as possible, cover all the cases but then cop out and do this
Especially in game programming