protected function matchesAttributeFilter($element, array $attributeFilter)
    {
        if ($attributeFilter['PropertyPath'] !== null) {
            $value = $this->getPropertyPath($element, $attributeFilter['PropertyPath']);
        } else {
            $value = $element;
        }
        $operand = null;
        if (isset($attributeFilter['Operand'])) {
            $operand = $attributeFilter['Operand'];
        }

        return $this->evaluateOperator($value, $attributeFilter['Operator'], $operand);
    }