Minor detail, but I believe empty? is slightly more performant (not that it really matters here). Just a note for the future, but unless .. empty? is probably preferable to if ... any? for future reference.