Fixing data check for updateRecords. Conditioning that  is array.