I agree with the following statement:
I'm personally a fan of guard clauses (the second example) as it reduces the indenting of the function. Some people don't like them because it results in multiple return points from the function, but I think it's clearer with them.
Taken from this question in stackoverflowthis question in stackoverflow.