Why is it good practice to check if a key is part of the dictionary before removing it?
To avoid getting an error in case the key is not present.