Renamed the function to check if the operation cancels