Do you think it would be useful to have this raise a specific exception, rather than a rather generic `IndexError` ?