I think it's not so necessary to have an util function mainly for query the number of the input. I will add selectedInouts and allInput for thread view since they're not only for checkInputs function.