Maybe check whether an order exists for the current request first, and fall back to the setting afterwards?