The block could be simplified:

```php
if (!is_callable($callback)) {
    throw new \InvalidArgumentException("Given argument is not callable");
}

$this->requestFactory = $callback;
```

Saving the `else` completely.