Minor refactoring in listClientsNearby method