wouldnt doing that cause the for loop to not run due to "devices" being nothing?