Handle undefined and boolean
merge