Remove foreach if not needed.