Check if configObject is defined to prevent error