checking for options object