Merge pull request #2 from alafon/bracket-typo

{ instead of ( in if functions