protected function isColumnSet($type)
{
$target = "\\kartik\\grid\\" . ucfirst($type) . "Column";
$param = $type . 'Column';
$col = $this->{$param};
if (empty($col)) {
$col = [];
}
$class = ArrayHelper::getValue($col, 'class', '');
$out = !empty($class) && is_subclass_of($class, $target);
if (!$out) {
$col['class'] = $target;
$this->{$param} = $col;
}
return $out;
}