In a function, I want to check if variable names exist in the local scope (not looking at parent envs) and if they do, are not NULL. Working example below, but I wonder if there is a more elegant way than the convoluted sapply call I have now:In a function, I want to check if variable name