add if

https://bugs.launchpad.net/fuel/+bug/1250040