```js
success && success();
````
or 

```js
if (success) {
  success();
}
```