You have a method which is only worth executing if a specific variable is not null. A single early return at the top of a function is a good idea if you have some base case that you're checking for.