public function isAvailable($host)
    {
        $hostcdNode = $this->getHostcd($host);
        $node = $this->getFirst('host:name', $hostcdNode);

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

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

@param $host fully qualified name of the host object

@return bool
Host is available for creating .