How can I check if an element exists in the visible DOM? How can I check if an element exists in the visible DOM? javascript javascript