Shouldn't this be `||` instead of `&&`?  (Since it's technically an error if we're missing either, not just if we're missing both?)