$page->hasCode()

Checks if there are any audio files in the page's directory

  • return (integer)

Example

<?php
echo $page->hasCode(); //returns the number of code files in the folder

if($page->hasCode()) {
  $codeFiles = $page->code();
}
?>