I meant to have clouds object for this. If clouds.list[i].conn == None, then that cloud doesn't have instances.