master
helper
function helper( list, maxRetries ) { var deferred = $.Deferred(); if ( list.length === 0 ) { deferred.resolve( [] );