Does the page have a files path for storing files?
This will only check if files path exists, it will not create the path if it’s not already present.
Available since version 3.0.138. Earlier versions must use the more verbose PagefilesManager::hasPath($page)
$bool = $page->hasFilesPath();
API reference based on ProcessWire core version 3.0.160