ig it’s a method of PagesManager now:
PagesManager
Why not use st.navigation to conditionally hide pages? (maybe helpful post)
st.navigation