Use #empty? method instead of #count == 0