Replaced all calls of any(is.na()) to anyNA()