Fixed issue with exif throwing a warning if no exif data is returned

array_key_exists throws a warning if exif_read_data returns false, this resolves by confirming data is an array before it returns $data[$key]