simplify using nqp::iscont as suggested by jnthn++