Seems very strange that this throws `IllegalArgumentException` while other methods throws `NoSuchElementException`, but no strong feelings.