/Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h
Does the given path contain assets, optionally also testing sub-paths?
bool HasAssets ( const [FName](API\Runtime\Core\UObject\FName) PackagePath, const bool bRecursive ) const