Removing indentation level by return early

Just reversing the ```if``` logic to return early and avoid the ```else```.