https://medium.com/@igventurelli/enhancing-code-readability-and-reducing-cyclomatic-complexity-with-return-in-conditionals-62033b9d5881