protected function isUnique($id, $url)
    {
        try {
            return $this->loadByUrl($url)->id === $id;
        } catch (NotFoundException $e) {
            return true;
        }
    }
protected function isUnique($id, $url)
    {
        try {
            return $this->loadByUrl($url)->id === $id;
        } catch (NotFoundException $e) {
            return true;
        }
    }
protected function isUnique ( $ id , $ url ) { try { return $ this -> loadByUrl ( $ url ) -> id === $ id ; } catch ( NotFoundException $ e ) { return true ; } }
Check if URL is unique.

@param int $id
@param string $url
@return bool
@throws \eZ\Publish\Core\Base\Exceptions\UnauthorizedException
Check if URL is unique .