var hasPopedom = function (popedom, collection) {
var result = false;
$.each(collection, function (i, item) {
if (item.NAME == popedom) { result = true; }
});
return result;
}