That's odd use of it. What I would do instead is:
```javascript
function dynamicForm(action, args, container) {
    // these to arguments are optional
    args = args || null;
    container = container || null;
    ...
```