Change a function name from isUserCancel to isUserConfirm.