thats not what this is doing, it removes the element if there is nothing inside it not counting the controls. this happens if the note or image or whatever has been removed by ephemera already. the selector you suggested would select based on the presence of the elements instead of the absence of them