Add a boolean to indicate if preferences are loaded or not.