/Engine/Source/Editor/UnrealEd/Public/EditorScriptingHelpers.h
Check if the Path have a valid root
namespace EditorScriptingHelpers { bool EditorScriptingHelpers::HasValidRoot ( const [FString](API\Runtime\Core\Containers\FString) & ObjectPath ) }