const checkProp = (predicate, prop) => obj => !!predicate(obj[prop]);