Yeah i noticed that, good idea, although i never get mismatches, it happens a lot if i'm helping people.
My little tip to avoiding bracket mismatches is to make the layout of the script first, eg:
alias test {
if () {
}
}
Then put the actual coding in afterwards.