Instead of checking the value of a key, check for the existance

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