@lukecarbis This is clever line, might be good to flesh it out a bit more for the sake of readability.

```php
$ext_type = ! empty( $ext_type ) ? $ext_type : 'document';
```

cf. http://make.wordpress.org/core/handbook/coding-standards/php/#clever-code