Model/ContentManager.php
public function checkIsAliasExistsAlready($alias, $path, array $pathParameters = array(), $locale = null)
    {
        if ($alias === null) {
            return false;
        }
        $already = $this->findByAlias($alias);
        if ($already) {
            $seo = $this->createNewAlias($alias, $path, $pathParameters, $locale);
            if ($seo->getKeyword() == $already->getKeyword()) {
                return false;
            }

            return true;
        }

        return false;
    }
public function checkIsAliasExistsAlready($alias, $path, array $pathParameters = array(), $locale = null)
    {
        if ($alias === null) {
            return false;
        }
        $already = $this->findByAlias($alias);
        if ($already) {
            $seo = $this->createNewAlias($alias, $path, $pathParameters, $locale);
            if ($seo->getKeyword() == $already->getKeyword()) {
                return false;
            }

            return true;
        }

        return false;
    }
public function checkIsAliasExistsAlready ( $ alias , $ path , array $ pathParameters = array ( ) , $ locale = null ) { if ( $ alias === null ) { return false ; } $ already = $ this -> findByAlias ( $ alias ) ; if ( $ already ) { $ seo = $ this -> createNewAlias ( $ alias , $ path , $ pathParameters , $ locale ) ; if ( $ seo -> getKeyword ( ) == $ already -> getKeyword ( ) ) { return false ; } return true ; } return false ; }
Returns true if there is already an alias of another path+pathParameters+locale.

@param       $alias
@param       $path
@param array $pathParameters
@param null  $locale

@return ContentInterface
Returns true if there is already an alias of another path + pathParameters + locale .