call hasOwnProperty() on nodes to ignore properties or functions defined on Object