Ah, yes. So I should be 'if len(machines) == 1 && machines[0] == "" {', no? And then drop the append and just set machines[0].