added method hasUser()