How to continue loop in Map( /Reduce ) function?
===

I have a Map function in MongoDB which I'm later using Reduce on. I use a collection which has  a bunch of users in it and users own some channels. However, there are users that do not have any channels and the Map/Reduce function raises an error in my script.


         map = Code("function () {"
					"  if(!this.channels) continue;"
					"  this.channels.forEach(function(z) {"
					"		emit(z, 1);"
					"	});"
					"}")

When I use return instead of continue to quit the function it works flawlessly except that I don't want to end the loop. Is there any smart way around this?

Thanks for your advice and better widsom.
