$field->isEmpty()
Checks if the field content is empty
$field->isEmpty(): bool
Return type
bool
Example
<?php if ($page->address()->isEmpty()): ?>
No address available
<?php endif ?>
Checks if the field content is empty
$field->isEmpty(): bool
bool
<?php if ($page->address()->isEmpty()): ?>
No address available
<?php endif ?>