Better to use:

```javascript
if ( $topModule.length ) {
```