You can move this check at the beginning of the method and return early