$vocNew = \Drupal::entityTypeManager()->getStorage('taxonomy_vocabulary')
->loadByProperties(['name' => $map[2]]);
if (!empty($vocNew)) {
$vocNew = reset($vocNew);
$vocabulary_id = $vocNew->id();
}
$vocNew = \Drupal::entityTypeManager()->getStorage('taxonomy_vocabulary')
->loadByProperties(['name' => $map[2]]);
if (!empty($vocNew)) {
$vocNew = reset($vocNew);
$vocabulary_id = $vocNew->id();
}