Fix incorrect variable name in numChildren

Method numChildren() was getting variable $onlyVisible as a param but expecting $onlyViewable, resulting in PHP notice and incorrect behavior when called with any value evaluating to true.