Remove duplicated condition branch

The caller(#add) doesn't have to check if the result has the header, because the #output_header checks it already. I think #output_header has the responsibility to output header.