- added check, if config isset (prevents Notice: Undefined index)