Check that a player Id exists in the Players array before trying to access it.