This reverts commit a9a1c00cc9. Unfortunately, adding the boolean return broke both the python and javascript bindings, since they now return a tuple consisting of the boolean and the out argument.
a9a1c00cc9