This is the same as length < 0, so it's already covered by your length < 2 check a couple lines further.