public bool Remove(Bundle bundle) { var hasAllResources = bundle.All(pair => Contains(pair.Key, pair.Value)); if (hasAllResources) { TodaysTransactions.Add(bundle * -1); RemoveBundleInStockpile(bundle); return(true); } else { return(false); } }