This works but I think it's very unclear. I think it'd be much clearer to write `if user is None: return None; else return user['name']`