Error upgrade from Beta 14 at last version V1.0 id undefined

Hi every body,

I have a new error with the last version : TypeError: Cannot read property ‘id’ of undefined when i use this

 if ($scope.participants[i].id == userid) {}

It worked on last beta. I dont understand … how I can fix here ?

Thx a lot