This should catch both conditions:

```javascript
if (input)
```