rename checkPredicate() to check()