Checks, if an entity is translated.
string $langcode: Language code.
string $name: Configuration name.
bool Returns TRUE, if it is translatable.
public function isTranslated($langcode, $name) {
$config = \Drupal::languageManager()
->getLanguageConfigOverride($langcode, $name);
return !$config
->isNew();
}