On the other side, why not keep original code

```php
if ('' !== $attribute) {
    return $attribute;
}
```

Yes it considers existing `class`/`id` attribute with an empty value as an not existing attribute, but this isn't a problem, because as I said earlier what use do you have of an attribute with an empty value anyway?