option to not wrap empty $out

If it's empty we should have the option to output emptiness. $wrapIfEmpty defaults to '1' to preserve previous behaviour.