is.finite(frame) rather than !is.null