Own docker-gen with exists function