test if preferenceDictionary isEmpty