Not sure we need this method. What about doing the check in `getCallback()` and just return the `$name` if it is not valid? That way, the calling code could also be simplified to `$callback = $this->callbackResolver->getCallback($callback);`.