Check dependencies during admin_menu instead