Closure and is_callable correction