This line and the following 3 lines are not necessary. They do nothing. bottomTeams is an array, so bottomTeams.whatever is undefined.