Replace missing() with is.null()