prevent options from being undefined