code: function (param, allowTypes) {
      var t$ = Tool;
      allowTypes = allowTypes || [];
      if (t$.isUndefinedOrNull(param)) { return [] }
      if (allowTypes.findIndex(function (value, index, err) {
        return value === t$.getType(param)
      }) > -1) {
        return [param]
      }
      if (t$.isArray(param)) { return param }
      return []
    }
docs: param wrapper to Array