It's better if you move this out and make it the first thing to check for this method.