Use #nil? and #empty? in the bob solution