I would change this line to just

```php
if (! is_callable($value))
```