public function resolve($value, $default = 'value')
    {
        $callable = $this->getCallable($value);

        if (is_array($callable) && is_callable($callable[0])) {

            if (count($callable) === 1) {
                return call_user_func($callable[0]);
            } else {
                return call_user_func_array($callable[0], $callable[1]);
            }
        }
        
        return $default === 'value' ? $value : $default;
    }