public function hasPublicAlias($internalUrl, $asObject = false, $mode = UrlAlias::REWRITE)
    {
        $ret = null;

        if ($alias = $this->repository->findOneByInternalUrl($internalUrl, $mode)) {
            $ret = ($asObject ? $alias : $alias->getPublicUrl());
        }

        return $ret;
    }