$media->isReadable()

Checks if the file is readable

  • return (boolean)

Example

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