Another option if you don’t need any other class variables/functions etc is to add a Actor Tag and check if it exists.
Going more complex you can use GamePlay Tags with a C++ implementation to gain access to the GamePlayTagsAssetInterface.
GamePlayTagsAssetInterface