I think it should looks like `$object ? $object->last_modified : $object`
Basically I think more verbose will be something like

```php
if ($object) {
   return $object->last_modified;
}
```