inArray
var inArray = function(id) { var b = false; for (i in markersArray){ if (markersArray[i].id == id){ b = true; break; } } return b; }