Got rid of isFunction function.