There is a line in which you need to replace all if with replace_if, while the location of this if can be anything, and if it is part of another word, then you don’t need to replace ...
Some replacement examples
if(){ ... else if(){ ... Some examples when it is not necessary to replace
var myif = function(){ ... if24 = 24; I don’t know what regular expression you need to write to work correctly