private function resolveFieldLinks($field, string $locale = null)
    {
        // If no locale is set, to resolve links we use either the special "*" locale,
        // or the default one, depending whether this entry was built using a locale or not
        if (null === $locale) {
            $locale = null === $this->sys->getLocale()
                ? '*'
                : $this->getLocale();
        }

        if ($field instanceof Link) {
            return $this->client->resolveLink($field, $locale);
        }

        if (\is_array($field) && isset($field[0]) && $field[0] instanceof Link) {
            return $this->client->resolveLinkCollection($field, $locale);
        }

        return $field;
    }