Prevent functions from executing if menu is disabled.