Change all missing(arg) -> missing(arg) || is.null(arg)