removeUndefinedUnlessKeyword sanity checks that array exists before sanitizing out "undefined"