dojo.some is deprecated, but array.some is not (see http://dojotoolkit.org/reference-guide/1.9/dojo/_base/array.html#dojo-base-array-some)