I think this is probably not needed, because GetUserData will not return anything for invalid users, so the check in the previous line is enough IMHO.