can be changed to `if(!options.data)`