how to detect if object has tag in unity code example
Example 1: unity if gameobject exists
if (GameObject.Find("WhateverItsCalled") != null){ //it exists}
Example 2: how to find the tag of an objecdt in unity
if(FindGameObjectsWithTag(Player){
Debug.Log("FoundPlayer")
}