code: private function getName($entry)
      {
          if (empty($entry['names'])) {
              return $entry['id'];
          }
  
          $names = $entry['names'];
  
          if (!empty($names)) {
              return array_shift($names);
          }
  
          return $entry['id'];
      }
docs: @param array $entry
  
  @return string