It'd be good if is.na() was supported by the native R interpreter.