From: micathom Date: 2007-05-25T19:25:23+09:00 Subject: Re: Replacement idiom for "list_or_nil.to_a"? > list_or_nil.each do |value| > ... > end If you really want the extra loop in each just to find out that nothing has to be done, you could also do: (list_or_nil || []).each do |value| ... end