Check out example codes for "unity if gameobject exists". It will help you in understanding the concepts better.

Code Example 1

if (GameObject.Find("WhateverItsCalled") != null){    //it exists}

Learn ReactJs, React Native from akashmittal.com