Arrays in JS aren't length checked -- you just get `undefined` for outside of range indices.  So the equality check is guaranteed to correctly evaluate to false for an empty string.