Does the page have a files path and one or more files present in it?
This will only check if files exist, it will not create the directory if it’s not already present.
Available since version 3.0.138. Earlier versions must use the more verbose PagefilesManager::hasFiles($page)
$bool = $page->hasFiles();
API reference based on ProcessWire core version 3.0.214