@classmethod
    def registered(cls, username):
        if any(usr['username'] == username for usr in cls.getall().values()):
            return True
        return False
predicate which answers whether a username exists in the User db.
dataset/ETHPy150Open mekarpeles/waltz/waltz/__init__.py/User.registered