Looks like `$value` can be a boolean, a string, an array and an array where `array_values($value) === $value`. My understanding of HTTP headers is limited. Just wonder if this cascading `if` can't be simplified by using a convention for `$value`.