simplify semantics of R.isEmpty

As discussed in #539