remove usage of cw_isObjectInArrayWithBlock