has_length() checks how long is an object.
is_empty() checks is an object is empty (any zero-length dimensions).
has_length(x, n = NULL)is_empty(x)
A logical scalar.
Other predicates:
is_scalar,
predicate-data,
predicate-matrix,
predicate-names,
predicate-numeric,
predicate-trend,
predicate-type