adding InvalidArgumentException when value is not set in `add` and `set` methods