def check_user_in_list(id): if id not in users_rep: current_user = User(id) users_rep[id] = current_user return current_user