Parse error: syntax error, unexpected 'if' (T_IF) in /shared/new_prod2/app/code/community/Algolia/Algoliasearch/Model/Observer.php on line 114