This prevents next from being the empty string. I don't know if that's a big problem or not, but empty string is probably valid for some esoteric situations.