Fixed typo (is.na changed to is.null)