Velocity Script - Access Types of an Element

I'm using the UAF modeling for the first time and running into issues with Velocity reports. In particular I need to know if an element is a package or not. There are a significant number of UAF elements that are generalizations of package. However I've not been able to figure out how to check for that. Any help would be greatly appreciated.