Ensure that values are set before retrieving them.