Storage/src/StorageObject.php
public function exists(array $options = [])
    {
        try {
            $this->connection->getObject($this->identity + $options + ['fields' => 'name']);
        } catch (NotFoundException $ex) {
            return false;
        }

        return true;
    }
public function exists(array $options = [])
    {
        try {
            $this->connection->getObject($this->identity + $options + ['fields' => 'name']);
        } catch (NotFoundException $ex) {
            return false;
        }

        return true;
    }
public function exists ( array $ options = [ ] ) { try { $ this -> connection -> getObject ( $ this -> identity + $ options + [ 'fields' => 'name' ] ) ; } catch ( NotFoundException $ ex ) { return false ; } return true ; }
Check whether or not the object exists.

Example:
```
if ($object->exists()) {
echo 'Object exists!';
}
```

@param array $options [optional] Configuration options.
@return bool
Check whether or not the object exists .