public static function arraysContainOnlyValue(array $containers, $value, $exceptNContainers = 0, array $exceptAtIndex = [], array &$invalidContainers = [], array &$validContainers = [])
    {
        if ($exceptNContainers < 0) {
            $exceptNContainers = 0;
        } else {
            $exceptNContainers = intval($exceptNContainers);
        }
        
        $validCount = 0;
        $rowCount = 0;
        
        $expectedValidCount = count($containers) - intval($exceptNContainers);
        
        foreach ($containers as $row) {
            
            if (!is_array($row)) {
                return false;
            }
            
            $valid = true;
            $exceptCount = 0;
            
            for ($i = 0; $i < count($row); $i++) {
                
                if (in_array($i, $exceptAtIndex, true)) {
                    $exceptCount++;
                    continue;
                } else if ($row[$i] !== $value) {
                    $valid = false;
                    break;
                }
            }
            
            if ($exceptCount !== 0 && $exceptCount === count($row)) {
                $valid = false;
            }
            
            if ($valid == true) {
                $validContainers[] = $rowCount;
                $validCount++;
            } else {
                $invalidContainers[] = $rowCount;
            }
            
            $rowCount++;
        }
        
        return $validCount === $expectedValidCount;
    }