DontDestroyOnLoad - how to check if object should be destroyed?

I’m starting a WWWRequest Coroutine from the script of a GameObject. Sometimes this is done right before loading another scene, sometimes not.

What I want to do is call DontDestroyOnLoad on the object before dispatching the WWWRequest and then check if the object would have been destroyed after the request is complete, so that I can destroy it manually if necessary.

How do I do that?

passing almost any Unity Object as conditional will give false in both this situtions

: - never assigned

: - assigned but then destroyed

if (whatever.gameObject) {

        // true if exists (or was assigned)

} else {

       // if was destroyed (or never assigned) 

}

you can go like

if (theObject) Destroy(theObject)

and it will destroy only if was not destroyed before