Fix incorrect variable name in numChildren

Method numChildren() was getting $onlyVisible as it's param but looked for $onlyViewable, resulting in PHP notice and broken behavior when called with any value evaluating to true.