based on Javascript isDOM — How do you check if a Javascript Object is a DOM Object?
component install ramitos/isElement
var isElement = require('isElement')
var domify = require('domify')
isElement(domify('<div></div>')) // => true
isElement(domify('something')) // => false