Add null check localization helper method