/Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h
Returning true is possible only for MountedPath and PackageOnly internal types. Will attempt to mount before returning false
bool HasPackageName() const