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
                      );
    }