Working termination check for recursive completion menu