private function getAliasedUri($fileName, $alias)
    {
        if ($fileName === null) {
            return false;
        }

        if (!$this->isAlias($alias)) {
            return false;
        }

        // If we're passing in an image as array, instead of a single filename.
        $fileName = $this->normalizeFileName($fileName);

        return $this->urlGenerator->generate(
            'thumb_alias',
            [
                'alias'  => $alias,
                'file'   => $fileName,
            ]
        );
    }