Fixed cookie optional options object checker.