more robust checking for removing content