if else in headers