ifelse function but then based on whether value is NULL or not
ifelse0(value = NULL, alternative = NULL, allow_null = FALSE)
value
: metadata list objectalternative
: alternative valueallow_null
: can the alternative be NULL?value
if non-NULL; alternative
otherwise