class UniqueCharsSet(object): def has_unique_chars(self, string): if string is None: return False return len(set(string)) == len(string)