use logicalOr and a callback function