I think this would be more readable:
```
$node->isEmpty = !$node->htmlNode || ($node->htmlNode->name !== 'select' && $node->htmlNode->name !== 'textarea');
```