public function fillBlanks($payload)
    {
        $fields = ['doi', 'url', 'message', 'verbosemessage', 'responsecode', 'app_id'];
        foreach ($fields as $field) {
            if (!array_key_exists($field, $payload)) {
                $payload[$field] = "";
            }
        }
        return $payload;
    }
public function fillBlanks($payload)
    {
        $fields = ['doi', 'url', 'message', 'verbosemessage', 'responsecode', 'app_id'];
        foreach ($fields as $field) {
            if (!array_key_exists($field, $payload)) {
                $payload[$field] = "";
            }
        }
        return $payload;
    }
public function fillBlanks ( $ payload ) { $ fields = [ 'doi' , 'url' , 'message' , 'verbosemessage' , 'responsecode' , 'app_id' ] ; foreach ( $ fields as $ field ) { if ( ! array_key_exists ( $ field , $ payload ) ) { $ payload [ $ field ] = "" ; } } return $ payload ; }
Make sure that all fields are filled out

@param $payload
@return mixed
Make sure that all fields are filled out