These conditions covered the scenarios where something like a `foo` file exists right next to a `foo.js` file (if you do `require('./foo')`, it should favor the `foo.js` file)