Only print output if non-empty