Check if the given object is a dom node