Could we do this as:

```javascript
if (isNaN(number)) { 
  return; 
}
```