Change the if !packages.empty? to unless