Look here:
$ echo xxx | tee >(xargs test -n); echo $? xxx 0 $ echo xxx | tee >(xargs test -z); echo $? xxx 0
and look here:
$echo xxx | tee >(xargs test -z; echo "${PIPESTATUS[*]}")
xxx
123
$echo xxx | tee >(xargs test -n; echo "${PIPESTATUS[*]}")
xxx
0
That isIs it?