added check for empty dictionary when calling the dht driver