Same here:
```javascript
return Boolean(obj);
// or
return (obj !== '' && obj !== null);
```
Always use === instead of == and !== instead of !=. Your approach is error-prone.
Tip: install jshint or jslint. Helps a lot to avoid such "bad style" things.