make put() actually return true on success

Without this it only returns false on failure or undefined on success.