Probably need to add

```php
if (!trim($body)) $body = "No message given";
```