Test is something exists and then remove

This is something I would think would be easy, but here’s my dilemma: I am trying to see if a textfield exists on the stage and if it does, I want to remove it. I am trying to do it using the code below, but if the textfield doesn’t exist I get an error because I’m tring to remove something that isn’t there. I’m sure there is a simple way to do this and I would appreciate any suggestions. Thanks!

if (stage.contains(cctextBox)) {
removeChild(cctextBox);
}