How to check if gameobject is missing?

if i have destroyed an object in script A
get there in script B object is missing
how can i check if the object is missing en put there another object on

if (theObject == null)
{
ReplaceIt();
}