module/Core/src/Grid/Core/Model/SubDomain/Rpc.php
public function isSubdomainAvailable( $subdomain, $params = array() )
    {
        $params = (object) $params;

        return ! $this->getMapper()
                      ->isSubdomainExists(
                          $subdomain,
                          empty( $params->id ) ? null : $params->id
                      );
    }
public function isSubdomainAvailable( $subdomain, $params = array() )
    {
        $params = (object) $params;

        return ! $this->getMapper()
                      ->isSubdomainExists(
                          $subdomain,
                          empty( $params->id ) ? null : $params->id
                      );
    }
public function isSubdomainAvailable ( $ subdomain , $ params = array ( ) ) { $ params = ( object ) $ params ; return ! $ this -> getMapper ( ) -> isSubdomainExists ( $ subdomain , empty ( $ params -> id ) ? null : $ params -> id ) ; }
Return true, if subdomain is available

@param   string          $subdomain
@param   array|object    $params
@return  bool
Return true if subdomain is available