fixing has_job helper