Unless -> if; fix check for existance of generator file