It's better to use is_callable() instead of checking whether it's instance of Closure