Ruckus
for (resource in listOfResources) { // Do something with the resources } else { // Do something when no resources are found }