Handle the case when there is no files, but only length