He means : add a break here, just after having found a matching file, as there is no need to continue the foreach loop.