code: public boolean isForeachCompatible(Class<?> clazz) {
          if (clazz == null) {
              return false;
          }
  
          return (clazz.isArray() || 
                  Collection.class.isAssignableFrom(clazz));         
      }
docs: Returns true if the specifed class is compatible with Tea's
  <code>foreach</code> statement.  Compatibility implies that the
  class can be iterated on by the <code>foreach</code>.