check type of options.data