file === undefined is enough