A step by step refactoring of a function to use early returns. This technique makes the code easier to read and understand.