$file->isReadable()

Checks if the file is readable

  • return (boolean)

Example

<?php if($page->file()->isReadable()): ?>
The file is readable
<?php endif ?>