Though the Dockerfile only copies specific files anyway, if someone for whatever reason places their node_modules folder inside their src folder for example, this is an extra check to make sure no pre-existing node_modules are copied over.