fix broken library, break out _.isFunction to not rely on each