Added check for undefined user object.