check if a value is a DOMElement