Restructured conditionals for readability
Replaced render_trigger_event with fail AccountError