No shadowing of input member / explicit check

Test for number of tables explicitly. VTunes showed some weird times spent on
dereferencing the input table pointer. Therefore, we rephrase this as an
explicit check of the number of inputs. Furthermore, this no longer shadows the
input member variable.