Call this as

```perl
$self->install_modules($confighash->{modules}) if exists($confighash->{modules});
```
and adjust the callee.

I don't see in that other method that you access any other part of the `$confighash`.