(cancel-undo-boundary): Switch definition by existence of variable