How is `$data['id']` getting set to an empty value?