$args was never initialized.
$headers was never initialized.
$notices was never initialized.
$result was never initialized.
$parts was never initialized.