@lukecarbis Since we've already determined the `$parent_id` we should just be able to do:

```php
$parent_title = $parent_id ? get_the_title‎( $parent_id ) : null;
```