only redirecting if setting is set