BUG: get_options_data should validate it's arguments GH6105

closed #6105