Will can be used after if if it expresses the idea of willingness.
Or a result, rather than a condition: "Open the window if it will help you to sleep"