Just pick a default there, instead of raising an exception, I'd say.

In general, I'd rewrite the function to something like this:
```
retval = false
unless ...
  if not ...
    retval = proposals[0]["attributes"]["crowbar"]["edit_proposal_name"] 
  end
end

return retval