PHP error handling and Chart of Accounts