It's okay to use "if". However, only if used inappropriately as shown in that article, it could turn into an evil. Since, W3TC has plenty of options, it is practically not easy to convert everything into something that doesn't use an "if" statement.
There are areas where "if" is used correctly in W3TC. In general, it is safe to use this plugin's nginx.conf file.