Is there a smarter way to do the following without the $result
variable and without the if-statements?
...
$description = BIG ARRAY
$result = array('error' => '', 'amounts' => array(5, 10, 25, 50));
if (isset($description['error'])) $result['error'] = $description['error'];
if (isset($description['amounts'])) $result['amounts'] = $description['amounts'];
return $result;