$field->bool()

Converts the field value into a proper boolean

  • return (boolean)

Example

<?php if($page->hasHeader()->bool()): ?>
<header>
...
</header>
<?php endif ?>