Can we just do "!(obj instanceof Pair)"?