Handle empty values for booleans and numbers. Clean up content-header code.