Throw error unless options object is passed