check that nconf is not undefined