You probably will be able to:
foreach($data as $row)
{
$info = array(
'id' => $this->getData($row, 'Id'),
'title' => $this->getData($row, 'Title'),
'year' => $this->getData($row, 'Year'),
'author' => $this->getData($row, 'Author'),
'version' => $this->getData($row, 'Version'),
'page' => $this->getData($row, 'Page'),
);
$this->table->create(array_filter($info));
}
public function getData($data, $key)
{
return isset($data[key]) ? $data[key] : null;
}