check for availablity of header in to_s and to_h conversion