Checking for an objects existence

how do i check to see if an object exists on the stage. I know it can be done because I’ve been shown how to do it before but i can’t remember how.

thanks,
Brendan Smith