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