protected function _skip($context)
    {
        if (!is_string($this->_on) && is_callable($this->_on)) {
            $function = $this->_on;

            return !$function($context);
        }

        $newRecord = $context['newRecord'];
        if (!empty($this->_on)) {
            if (($this->_on === 'create' && !$newRecord) || ($this->_on === 'update' && $newRecord)) {
                return true;
            }
        }

        return false;
    }