This issue is php version. It’s because of your server may have older version of PHP. Can you please update your server PHP version to 5.5 or 5.6. If you not able to understand about above para. Please ask your hosting provider in live chat support with above content as a question. They’ll fix this issue within a minute.
if not resolved change in code
Note: Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.