i have the following array:
$keyvisual_data = array( \'video_file\' => $row->field_field_video[0][\'rendered\'][\'#item\'][\'uri\'],
No there is not
You can do an isset():
isset()
if(isset($array[0])){ echo $array[0]; } else { //some error? }
Or if you know that you are only going to be checking index 0:
$array = $array + array(null);
So if the original $array[0] was unset, now it is null
$array[0]
null