Prevents arguments from leaking

This lines should be moved inside the `if(func)` block