Return early where possible.

Avoid multiple nesting of conditionals that cover the rest of the method by checking for the conditional inverse and returning early where possible. This makes the code easier to follow and understand.
Merge pull request #15 from GaryJones/feature/return-early

Return early where possible.