protected function getGroupByKey($groupBy, $key, $value)
    {
        if ( ! is_string($groupBy) && $groupBy instanceof Closure)
        {
            return $groupBy($value, $key);
        }

        return _data_get($value, $groupBy);
    }