How to set hide button when a certain path doesn't exist