Refactor `Inspector::isCallable` to be context independant.

Same as #810 but with less footprint imo.