if (not resume or
            not u.checkpoint(u.are_predictions_created, predictions_file,
                             number_of_tests):

better?