refactor isElement
Merge branch 'master' into site