How about doing `if empty(spec_command)` and switching the conditional branches? For line 35, too.