Currently when performing an API call, if a PHP error, such as, an undefined index or even a failed SQL query in some cases, occurs, no error will be reported. The API will behave like nothing happen. Such errors can be easily overlooked and can lead to unexpected consequences.
I believe, that if an error occurs, the API call must fail and return an error.