Do we need both of these checks? Yes, one throws an ISE and the other an IAE, but would e.g. the IAE be enough?