public function fieldExists($fieldName, ContentType $contentType)
    {
        $fieldDefinition = $contentType->getFieldDefinition($fieldName);

        if (empty($fieldDefinition)) {
            return false;
        }

        return true;
    }