Added hasOwnProperty call when looping through records to prevent issues when other libraries extend the Array class