Hold reference to member in members array while acting on it. This avoids a buggy corner-case where members[i].update() could change the number of members in this Group, resulting in the members[i].exists check referencing a different member (and possibly crashing on members[i] being undefined).
Hold reference to member in members array while acting on it. This avoids a buggy corner-case where
members[i].update()
could change the number of members in this Group, resulting in themembers[i].exists
check referencing a different member (and possibly crashing onmembers[i]
being undefined).