private function checkHasFields(NodeInterface $node, ClassMetadata $metadata, $locale)
    {
        if ($node->hasProperty($this->prefix.':'.$locale.self::NULLFIELDS)) {
            return true;
        }

        foreach ($metadata->translatableFields as $field) {
            $mapping = $metadata->mappings[$field];
            $propName = $this->getTranslatedPropertyName($locale, $mapping['property']);
            if ($node->hasProperty($propName)) {
                return true;
            }
        }

        return false;
    }