check if the option is object.