Add checks whether there are statements or a statements array

To be able to deinitialize properly.
Add implementation of destruct_message()