Check for the existance of a key instead of checking key value

If you rely on the value of a key, you could miss sanitizing that key out of the opts.