protected function isIntegerKey($current, $model): bool
    {
        if ($model != null && $model instanceof Model) {
            return !empty($model->{self::ROW_NUM_COLUMN}) || $model->getKeyType() == 'int';
        } else {
            if ($current != null && is_numeric($current) || ctype_digit($current)) {
                return true;
            }
        }
        return false;
    }
protected function isIntegerKey($current, $model): bool
    {
        if ($model != null && $model instanceof Model) {
            return !empty($model->{self::ROW_NUM_COLUMN}) || $model->getKeyType() == 'int';
        } else {
            if ($current != null && is_numeric($current) || ctype_digit($current)) {
                return true;
            }
        }
        return false;
    }
protected function isIntegerKey ( $ current , $ model ) : bool { if ( $ model != null && $ model instanceof Model ) { return ! empty ( $ model -> { self :: ROW_NUM_COLUMN } ) || $ model -> getKeyType ( ) == 'int' ; } else { if ( $ current != null && is_numeric ( $ current ) || ctype_digit ( $ current ) ) { return true ; } } return false ; }
Detect, if cursor value is integer or not.
Extract key type from model, if possible, otherwise just check cursor value type

@param mixed $current Current curor value
@param mixed $model one of items or null
@return boolean
Detect if cursor value is integer or not . Extract key type from model if possible otherwise just check cursor value type