There is: you panic, like in the array case.
That would have been much robust (at the cost of performance).