public function isAvailable($contactId)
    {
        $contactcdNode = $this->getContactcd($contactId);
        $node = $this->getFirst('contact:id', $contactcdNode);

        return in_array($node->getAttribute('avail'), ['1', 'true']);
    }
public function isAvailable($contactId)
    {
        $contactcdNode = $this->getContactcd($contactId);
        $node = $this->getFirst('contact:id', $contactcdNode);

        return in_array($node->getAttribute('avail'), ['1', 'true']);
    }
public function isAvailable ( $ contactId ) { $ contactcdNode = $ this -> getContactcd ( $ contactId ) ; $ node = $ this -> getFirst ( 'contact:id' , $ contactcdNode ) ; return in_array ( $ node -> getAttribute ( 'avail' ) , [ '1' , 'true' ] ) ; }
Contact is available for creating.

@param string $contactId contact identifier

@return bool
Contact is available for creating .