* fix: prevent crashing the rest process
There where instances where some requests crashed the rest process. I found that checking for a body pretty much fixed it.
There is probably a better way to do this, please improve this if you have an idea :)
* chore: use undefined instead of empty string
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
* chore: use ternary operator
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>