Sharia courts may have helped bring down the Ottoman Empire