Use hasOwnProperty when iterating an array

This was breaking due to the fact that one of my Node modules was extending `Array.prototype`.

Definitely not `rc`'s fault – but it's kind of a best practice to use `hasOwnProperty` when using `for in`.