- added additional guards for CocosDension.