```javascript
if ($.isFunction(success)) {
```