It fails if passed function has no parameters: fixed

There are cases when you use introspect where you try to look at a function with no parameters. It that case introspect fails because exec return null and you where trying to access element [1] of null.