Return early and clearly--Arne Mertz
How to return well:
Return early and clearly
by Arne Mertz
From the article:
There are different guidelines out there about where and how many return statements to use in a function, e.g. return only once at the end of the function or return early and often. Which one makes for the most readable code?