testing to see if appPrefs is set when this is called