https://uncookednews.com/how-to-detect-risk-early-in-iteration/