$field->exists()

Checks if the field exists.

  • return (boolean)

Example

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

Is something missing or incorrect? Edit this page on Github…