Investigate implementing early return from functions / breaking from loops.
Investigate implementing early return from functions / breaking from loops.