According to PSR this should looks like
```php
if ($object) {
    return $object->getETag();
}
```