Error while parsing PHP: syntax error, unexpected '}'