Check row.magazines.length

It appears that row.magazines is an array. In which case checking the length of the array is necessary.