public function hasContacts(array $contacts): bool
    {
        foreach ($contacts as $contact) {
            if (!$this->hasContact($contact)) {
                return false;
            }
        }

        return true;
    }
public function hasContacts(array $contacts): bool
    {
        foreach ($contacts as $contact) {
            if (!$this->hasContact($contact)) {
                return false;
            }
        }

        return true;
    }
public function hasContacts ( array $ contacts ) : bool { foreach ( $ contacts as $ contact ) { if ( ! $ this -> hasContact ( $ contact ) ) { return false ; } } return true ; }
Determines if an array of contacts exists.

@param array $contacts

@return bool
Determines if an array of contacts exists .