It changes the order of checking and accessing reg[i].pid . 
It first checks if i is inside the bound and then let you access reg[i].pid
This prevents vou accidently accessing a field in nirvana.