Refactor access to configuration data
* shorter check if config data exists and is set
* easier to read