Adds method to check if an order is completed