Here's the code:

```
if (isset($_SERVER['HTTP_HOST']) === TRUE) {
  $host = $_SERVER['HTTP_HOST'];
}

```

How is it possible to get an "Undefined index HTTP\_HOST" on the line inside the if statement? I mean, the index setting is checked before it is used. 

And why could the HTTP\_HOST sometimes be not set?