how to check what objects are in the scene unity code example
Example: unity if gameobject exists
if (GameObject.Find("WhateverItsCalled") != null){ //it exists}
if (GameObject.Find("WhateverItsCalled") != null){ //it exists}