You should check that `node.callee.type` is `"Identifier"`. This would fail on the (unlikely) construction `new "require"`.