private function isInTransaction(array $options)
    {
        if (isset($options['session']) && $options['session'] instanceof \MongoDB\Driver\Session && $options['session']->isInTransaction()) {
            return true;
        }
        return false;
    }
private function isInTransaction(array $options)
    {
        if (isset($options['session']) && $options['session'] instanceof \MongoDB\Driver\Session && $options['session']->isInTransaction()) {
            return true;
        }
        return false;
    }
private function isInTransaction ( array $ options ) { if ( isset ( $ options [ 'session' ] ) && $ options [ 'session' ] instanceof \ MongoDB \ Driver \ Session && $ options [ 'session' ] -> isInTransaction ( ) ) { return true ; } return false ; }
Returns whether we are currently in a transaction

@param array  $options  Command options
@return bool
Returns whether we are currently in a transaction