Please check if the environment array exists before checking on nested key:
```PHP
if ($this->config['environment'] && $this->config['environment']['debug'])
```
If I don't define config array, some warnings show up