$field->isEmpty()
Checks if the field content is empty
$field->isEmpty(): bool
Return type
bool
This method modifies the existing $field
object it is applied to and returns it again.
Examples
<?php if ($page->address()->isEmpty()): ?>
No address available
<?php endif ?>