don't generate empty templates when inverse not present