simplify semantics of R.isEmpty

As discussed in #539

Thanks, Graeme. PR updated.