private function getThumbnailUri(Thumbnail $thumb)
    {
        $fileName = $thumb->getFileName();
        if ($fileName === null || $fileName === '') {
            return false;
        }

        return $this->urlGenerator->generate(
            'thumb',
            [
                'width'  => $thumb->getWidth(),
                'height' => $thumb->getHeight(),
                'action' => $thumb->getScale(),
                'file'   => $thumb->getFileName(),
            ]
        );
    }