Using is.fn instead of is.function

Updating per your suggestion. After this is merged, can you npm publish? :-)