public function exist(string $id): bool
    {
        foreach ($this->relations as $relation) {
            $result = $relation->xpath(sprintf('//*[@rdf:about="%s"]', $this->getPropertyUrl($id)));
            if (!empty($result)) {
                return true;
            }
        }

        return false;
    }
public function exist(string $id): bool
    {
        foreach ($this->relations as $relation) {
            $result = $relation->xpath(sprintf('//*[@rdf:about="%s"]', $this->getPropertyUrl($id)));
            if (!empty($result)) {
                return true;
            }
        }

        return false;
    }
public function exist ( string $ id ) : bool { foreach ( $ this -> relations as $ relation ) { $ result = $ relation -> xpath ( sprintf ( '//*[@rdf:about="%s"]' , $ this -> getPropertyUrl ( $ id ) ) ) ; if ( ! empty ( $ result ) ) { return true ; } } return false ; }
Checks if a property exists in GoodRelations.
Checks if a property exists in GoodRelations .