protected function filterByProperty(array $locales, $property)
    {
        $filtered = [];

        foreach ($locales as $locale) {
            if ( ! empty($locale->$property) && ! in_array($locale->$property, $filtered)) {
                $filtered[] = $locale->$property;
            }
        }

        return $filtered;
    }