Added array checks, improved readability.
Added array checks, improved readability.

lkalinka/concurrent-spider-bundle,keesschepers/concurrent-spider-bundle,Breuls/concurrent-spider-bundle,keesschepers/concurrent-spider-bundle,lkalinka/concurrent-spider-bundle,lkalinka/concurrent-spider-bundle,Breuls/concurrent-spider-bundle,keesschepers/concurrent-spider-bundle,Breuls/concurrent-spider-bundle