refactor isEmpty in Navigation
add logging in isEmpty NavigationApi