better way can be create `search_path.verify!` which raise exception if needed or integrate it in Hook.new, where you check input parameters