Only set headers if they'll have values
Prevents sending a header in the response with a value of "undefined"