I'm building a plugin that adds blocks to a matrix in an entry from the front end. I got it up and running by following the answer in this post:
How to save a matrix content of a new entry in my plugin?
How do I check if the matrix already has blocks when I fetch the entry? And then, once I know if the matrix already has blocks, how do I retain the existing data while saving new blocks via the plugin?