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