Only print output if not empty