update to check if the option exists before setting it

Signed-off-by: David K. Bainbridge <davidk.bainbridge@gmail.com>