Added more verification for `set()`