$files->first() Returns the first element kirby/src/Toolkit/Collection.php#L445 $files->first(): mixed Return type mixed Parent class Kirby\Cms\Files inherited from Kirby\Toolkit\Collection Example <?php if($file = $page->files()->first()) { echo $file->filename(); } ?>