Better way to write multi-line condition statement.
Better place, name and doc for inner function.
Simpler loop.
Another simpler loop.
Simpler loop which does nothing with empty captures.