Properly check if distribution exists

self.k is a sorted set, not a string