I think I would do this instead:

```javascript
if ( camera instanceof THREE.OrtographicCamera ) {
} else {
}
```
As `PerspectiveCamera` tends to be the common case.