The second check does not make any sense for a job in a folder. Is it even necessary?