Simplify code by offering an enumerator (if block not present)