Minor improvement
Improved .isFunction, unit tests