generator: don't return non-existing unit