Combine headers in same if block