miconda left a comment (kamailio/kamailio#4302)
Have you faced any issue that requires such check? As I can see in the code, `match_by_name()` is used only once inside `search_next_avp()`, which expects to have the name set, because one avp was found already.