unity check gameobject is still in the scene code example
Example: unity if gameobject exists
if (GameObject.Find("WhateverItsCalled") != null){ //it exists}
if (GameObject.Find("WhateverItsCalled") != null){ //it exists}