I'm just curious; why would you check to see if list $exists twice?