Maybe also log something if not instanceof to be future-proof?