$content([$lang])->exists()

Checks if the content file exists

  • $lang (string)
    Optional, language code in multi-lang installation
  • return (boolean)

Example

<?php if($page->content('en')->exists()): ?>
  //do stuff
<?php endif ?>