code: public PenaltyCause[] processOperands(INDArray... operands) {
          if (operands == null)
              return new PenaltyCause[] {NONE};
  
          List<PenaltyCause> causes = new ArrayList<>();
          for (int e = 0; e < operands.length - 1; e++) {
              if (operands[e] == null && operands[e + 1] == null)
                  continue;
  
              PenaltyCause lc[] = processOperands(operands[e], operands[e + 1]);
  
              for (PenaltyCause cause : lc) {
                  if (cause != NONE && !causes.contains(cause))
                      causes.add(cause);
              }
          }
          if (causes.isEmpty())
              causes.add(NONE);
  
          return causes.toArray(new PenaltyCause[0]);
      }
docs: This method checks for something somewhere
  
  @param operands