I noticed yesterday that the PHP function works so well if you're using it directly and not as an API using Ajax.
If a form field is missing a value, it doesn't output the fields missing a value when building as an API with Ajax
You will see some error about an unexpected token
Well this is because it was built only to be used directly from your PHP script, not as an API.
I have taken notice of this bug and will issue a fix soon.