Break immediately when files object is empty.