function isCollapsable(arg) {
        return arg instanceof Object && Object.keys(arg).length > 0;
    }
Check if arg is either an array with at least 1 element, or a dict with at least 1 key
@return boolean