err can be either undefined or null.

To be safe it is better let v8 check for both
Ignores node_modules