I think you can simplify this a bit by removing all the `if check_config.get('init_config')` stuff and just set that to a variable. Also if `get('init_config')` is none then calling `.get('is_jmx')` or whatever will fail. So you should do something like:

```python
init_config = checks_config.get('init_config', {})

# ...
if init_config.get('java_bin_path'):
# ...
if init_config.get('is_jmx'):
# ...
```