Null check in file array
I guess this fixed something?