It's better to check that data[0][0] exists.