use `respond_to?` instead of `method_defined?` when aliasing `search`