Below are revisions for this snippet.

document.exists





Syndication

Revision Revison 1
Checks whether a node exists or not. Not sure about cross browser compatibility though.