As above: does key `'spec'` already exist? If not, can be done in a single assignment