options: add support for checking if an option has been set