Protecting against object prototype additions when iterating

MooTools. JQuery etc... could break the code by adding methods to the object prototype. This protects against that.

This is not a breaking change.