This will fail if there is not `.travis.yml` file in main folder, same way as with `LICENSE` or `composer.json` file.

About file after loop, you can see there is one more check for `LICENSE` file if it was not found in main folder (it looks for `Resources/meta/LICENSE`).