Checks if there's a next sibling
$file = $page->file('myfile.pdf'); if($file->hasNext()) { echo 'Next file: ' . $file->next()->filename(); }