Check for existence of values

Minor amends to check for existence of config settings. Doesn't affect a standard install but needed when instantiating an app without any config files eg for testing.