pleae do the ``null`` check first, to avoid looking at children if we don't have a branch class