Does an object have an element with this name?Source:
This function returns a logical value that indicates if a data
frame or another named object contains an element with a specific
name. Note that
has_name() only works with vectors. For instance,
environments need the specialised function
Unnamed objects are treated as if all names are empty strings.
FALSE as output.