No, he's right. The first curly bracket of your 'double bracket' closes the previous else statement. The second bracket of your 'double bracket' closes the if statement for $var.
Another way to verify: count your total opened brackets, regardless of where they are. You'll count 5. Count the total closing brackets, and you get 4, so you're missing a closing bracket.
Diego