Refactored logic for threading predicate through array of promises.