same here: would it be preferable to use ``instanceof`` if we cannot completely avoid it?