CS : Should be

```php
if (
    !empty( $field->value->data ) &&
    is_string( $field->value->data ) &&
    strpos( $field->value->data, self::FIELD_VALUE_DOM_DOCUMENT_KEY ) === 0
)
```