lib/models/node.js
function() {
            var self = this;
            return waterline.catalogs.findOne({"node": self.id})
            .then(function(catalog) {
                return !_.isEmpty(catalog);
            });
        }
function() {
            var self = this;
            return waterline.catalogs.findOne({"node": self.id})
            .then(function(catalog) {
                return !_.isEmpty(catalog);
            });
        }
function ( ) { var self = this ; return waterline . catalogs . findOne ( { "node" : self . id } ) . then ( function ( catalog ) { return ! _ . isEmpty ( catalog ) ; } ) ; }
We only count a node as having been discovered if a node document exists AND it has any catalogs associated with it
We only count a node as having been discovered if a node document exists AND it has any catalogs associated with it