Add a boolean to indicate whether an object exists in the Lua (#347).

The next step will be to test this boolean in all events.