If it's an object literal, you should wrap the contents of the for with:

if ($scope.app.application.sources.reads.hasOwnProperty(i)) {

}