use short-circuit logic.