Checking if an object is on the display list

Is there a way to check if an object is on a display list?

I have a display object container and it has children. When I remove the display object container, I want to have the child check if it’s parent exists then have it remove itself.