def all_prod_replicates_done(job):
    """Check if all prod replicate simulations completed."""
    try:

        return job.doc.prod_replicates_done >= job.doc.num_prod_replicates
    except AttributeError:
        return False