add logging to getParentForLevel
add logging to isEmpty in Navigation