tweaking is_callable for Base when sql is a Closure