I'd suggest just changing the max_attendees, if needed, after this line, rather than inside the get function.  Or else rename the get function, since I suspect developers will assume a get function doesn't change any data.