private function getPhotoGroups(Description $description)
    {
        $photosDescription = $description->getOptionalProperty('photos');

        if (!($photosDescription instanceof Description)) {
            return [];
        }

        return array_map(
            function (\stdClass $groupDescription) {
                return $this->photoGroupFactory->create(new Description($groupDescription));
            },
            $photosDescription->getOptionalProperty('groups', [])
        );
    }