function isVarWithRequireCalls(node) {
  return node.type === 'VariableDeclaration' &&
    node.declarations.some(dec => matchRequire(dec) || matchRequireWithProperty(dec));
}
Matches: var <id> = require(<source>);
         var <id> = require(<source>).<property>;