private function getName($entry)
    {
        if (empty($entry['names'])) {
            return $entry['id'];
        }

        $names = $entry['names'];

        if (!empty($names)) {
            return array_shift($names);
        }

        return $entry['id'];
    }
private function getName($entry)
    {
        if (empty($entry['names'])) {
            return $entry['id'];
        }

        $names = $entry['names'];

        if (!empty($names)) {
            return array_shift($names);
        }

        return $entry['id'];
    }
@param array $entry

@return string