add space after if before open parenthesis and after close parenthesis before open bracket.