Avoid returning in loops; iterate over list items.