Minor bug fix

> Fixed a breaking bug related to section hierarchy checks returning the
opposite result.