Early Return

Possible way to solve nested if statements. Basically just return if the result the negative of the clause in the if statements. Reference: