It should be :

```php
if( ! is_array($toHide)) {
    $toHide = array($toHide);
}
```