is this the same in the orm? otherwise i would say it should be is_callable instead of instanceof \Closure