code: public boolean isCollection()
      {
          if (target instanceof Collection)
          {
              return true;
          }
          if (containsKey("@items") && !containsKey("@keys"))
          {
              return type != null && !type.contains("[");
          }
          return false;
      }
docs: Collection APIs