Modify type check functions as underscore.js