Is it possible to use getBit in a UDT?

Yes, looks good. Consider using a more unique parameter name than Path. Simple names like that cause trouble when nesting UDTs inside each other, and there's a parameter name in common.