Use IsContainer() instead of GetTypeID()=='box' to manage containers