public function isUriAvailable( $uri, $params = array() )
    {
        $params = (object) $params;

        if ( empty( $params->subdomainId ) )
        {
            return false;
        }

        return ! $this->getMapper()
                      ->isSubdomainUriExists(
                          $params->subdomainId,
                          $uri,
                          empty( $params->id ) ? null : $params->id
                      );
    }
public function isUriAvailable( $uri, $params = array() )
    {
        $params = (object) $params;

        if ( empty( $params->subdomainId ) )
        {
            return false;
        }

        return ! $this->getMapper()
                      ->isSubdomainUriExists(
                          $params->subdomainId,
                          $uri,
                          empty( $params->id ) ? null : $params->id
                      );
    }
public function isUriAvailable ( $ uri , $ params = array ( ) ) { $ params = ( object ) $ params ; if ( empty ( $ params -> subdomainId ) ) { return false ; } return ! $ this -> getMapper ( ) -> isSubdomainUriExists ( $ params -> subdomainId , $ uri , empty ( $ params -> id ) ? null : $ params -> id ) ; }
Return true, if uri is available in a subdomain

@param   string          $uri
@param   array|object    $params subdomainId, [id]
@return  bool
Return true if uri is available in a subdomain