New routine hasnonemptyout() for minor improvement to new fixempties().