Google\Cloud\Logging\Sink::exists PHP Method

exists() public method

Example: if ($sink->exists()) { echo "Sink exists!"; }
public exists ( array $options = [] ) : boolean
$options array [optional] Configuration Options
return boolean
    public function exists(array $options = [])
    {
        try {
            $this->info($options);
        } catch (NotFoundException $ex) {
            return false;
        }
        return true;
    }