For a very long time the DB api is not returning bools from insert_record(), delete_records(), etc. the return true is there only for BC reasons, but no new code should actually test it because we use exceptions...
Please remove the $return handling code from comments and rely only on exceptions which are already handled properly by the new ajax error handler