You could theoretically speed this up by leaving the loop if first (boolean) `true` is found. On the other hand, how many network interfaces could be defined?