This is a task to add examples on how to reduce nesting in the code. For reference, see https://testing.googleblog.com/2017/06/code-health-reduce-nesting-reduce.html https://arne-mertz.de/2016/12/early-return/ https://softwareengineering.stackexchange.com/questions/18454/should-i-return-from-a-function-early-or-use-an-if-statement