public function isAvailable($domain)
    {
        $domaincdNode = $this->getDomaincd($domain);
        $node = $this->getFirst('domain:name', $domaincdNode);

        return in_array($node->getAttribute('avail'), ['1', 'true']);
    }
public function isAvailable($domain)
    {
        $domaincdNode = $this->getDomaincd($domain);
        $node = $this->getFirst('domain:name', $domaincdNode);

        return in_array($node->getAttribute('avail'), ['1', 'true']);
    }
public function isAvailable ( $ domain ) { $ domaincdNode = $ this -> getDomaincd ( $ domain ) ; $ node = $ this -> getFirst ( 'domain:name' , $ domaincdNode ) ; return in_array ( $ node -> getAttribute ( 'avail' ) , [ '1' , 'true' ] ) ; }
Domain is available for creating.

@param $domain fully qualified name of the domain object

@return bool
Domain is available for creating .