It can be written more simply:

```php
if (isset($this->modules[$module]["exclude"])) {
```

Please replace double quotes with single quotes.