files_array may be empty sometimes