Added explicit check that data is strict hierarchy