public function getResourcesByProperty(string $property, string $value = '',
                                           bool $checkIfExist = true): array {
        $query = new Query();
        if ($value != '') {
            $param = new HasValue($property, $value);
        } else {
            $param = new HasProperty($property);
        }
        $query->addParameter($param);
        return $this->getResourcesByQuery($query, '?res', $checkIfExist);
    }