check if search terms is already defined, supports passing in a custom _term key2