public function setEmitEvents($emitEvents)
    {
        if (!is_bool($emitEvents)) {
            throw new \InvalidArgumentException('`emitEvents` expects boolean value!');
        }

        $this->options['emitEvents'] = (bool) $emitEvents;
        return $this;
    }