This is better. This way if you add a sprint function or a crouch function it will adapt to whatever your default walk speed is.
So this way when you sprint or crouch you can set that new default walk speed and when you walk backward it would work correctly for each movement.