check both header keys