This is a little hard to read... is it `(not user) == user_info` or `not (user == user_info)`?  If it's the second, use `!=` to make it more obvious.