     # loops through all active process
     for active in @active_processes
 
-      # and checks if it's present in the pending processes as well
-      found = ArrayUtil.find @pending_processes, url: active.url
+      # and checks if it's present in the pending_processes as well
+      process = _.find @pending_processes, (item)->
+        return item.url is active.url
 
-      if (process = found?.item)?
+      if process?
         url = process.url
         if url? && url != active.url
           @dead_processes.push active


        # if dependency is found
        if dependency?

          # searchs for its dependencies recursively
          @_filter_pending_processes dependency, after_filter


Router = require 'theoricus/core/router'
Process = require 'theoricus/core/process'
_ = require 'lodash'
