Please use spaces between "if ($...) {". Same below.