If the event contains a “state” field, puts that field in
Otherwise stores an empty state (0). Returns true if there was a state field in the event. this may be null, in which case it’s treated as if the event had no state field.
a Event or null
return location for state
true if there was a state field in the event