only set header if option exists