Sweet! Didn't know Grunt exposes LoDash :) I did it this verbosely because the code a few lines below does something similar. Simply added the hasOwnProperty safeguard. Will refactor and push again.