improved null check for translation.