Node.JS utility function for returning a boolean if a module can be called via require()