@sqliu thanks for your links.

The remove statement is followed by ‘break',  so it is safe, right?