```php
( ! array_filter($accept_types))
```
instead
```php
( ! $accept_types = array_filter($accept_types))
```