Why not:

```php
return ($embeddedObject !== null)
    ? $this->childProperty->getValue($embeddedObject)
    : null; 
```