And I thought Rubyists were allergic to if clauses.  I'll go back to my first implementation