See the original description in utils::hasName.
hasName(x, name)# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_hasName = getFromNamespace("hasName", "backports")
bp_hasName(list(a = 1, b = 2), c("a", "b", "c"))
#> [1] TRUE TRUE FALSE