original_string: 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
                        );
      }
code: 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
                        );
      }
code_tokens: 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 ) ; }
docstring: Return true, if uri is available in a subdomain
  
  @param   string          $uri
  @param   array|object    $params subdomainId, [id]
  @return  bool
docstring_tokens: Return true if uri is available in a subdomain