is_callable

Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Verify that a value can be called as a function from the current scope.
is_callable(mixed $valuebool $syntax_only falsestring &$callable_name null): bool
            return $handler->handle($event$context);

        }



        if (
is_callable($handler)) {


            return 
$handler($event$context);

        }