TRQ-2970 - refactor patch for TRQ-2787
Fix crash on start up when reading empty array file.