Could also do something like the following:
```
if (callback === undefined and expirationDate is valid function name (means callback)) {
callback = expirationDate;
expirationDate = '';
}
```