If you remove the else { around this trigger_error, you can remove the default in the previous switch