use !empty? rather than size > 0