@classmethod
def job_exists(cls, status_dir, job_name):
    """Check whether a job exists and return a bool.

        Parameters
        ----------
        status_dir : str
            Directory containing json status file.
        job_name : str
            Unique job name identification.

        Returns
        -------
        exists : bool
            True if the job exists in the status json.
        """
    if job_name.endswith('.h5'):
        job_name = job_name.replace('.h5', '')
    obj = cls(status_dir)
    exists = False
    if obj.data:
        for jobs in obj.data.values():
            if jobs:
                for name in jobs.keys():
                    if name == job_name:
                        exists = True
                        break
    return exists
