check if an object is a node object stream