could just do 'return (idlist.indexOf(id) >= 0);'