$field->exists()

Checks if the field exists.

  • return (boolean)

Example

<?php
if($page->text()->exists())  {
  echo $page->text()->kirbytext();
}
?>