check for options object before reading it