Parse error: syntax error, unexpected 'if' (T_IF) in /home/trovestar/src/ts/ts_vector_functions.php on line 145