also there should really be spaces in front of your brackets, ie:

`if() {`
instead of
`if(){`