Actually, having read more of the code, I think it would be better to use a hash, rather than a list. Then later you can things like activeAppServers[name] = false, rather than splicing the array