I mean you can flatten one level as below:

```php
if (!$isPublished) {
	$instance->write();
} elseif ($instance->doPublish() === false) {
	Debug::message("  --  Publishing FAILED", false);
	throw new ConvertTranslatableExeption("Failed to publish");
} else {
	Debug::message("  --  Published",false);
}
```