Minor improvement on countMenuChildren()

Remove the else state here is needless