Off-by-one, this was meant to check a minimum length that includes equality but instead tested a valid index.