i have the following array:
$keyvisual_data = array(
\'video_file\' => $row->field_field_video[0][\'rendered\'][\'#item\'][\'uri\'],
You should use "isset" function to check the existence of the field, and infact its a good coding practice..
$keyvisual_data = array(
'video_file' => isset($rowWrapper->getVideoFile()) ? $rowWrapper->getVideoFile() : "any default value",
...
);
or you can use it in this way :
if(isset($rowWrapper->getVideoFile()))
{
$row['video_file'] = $rowWrapper->getVideoFile();
}
else {
$row['video_file'] = "";
}