I'm not sure about this, but it seems that some getters can return 0 if they fail. I would suspect that they fail if the entity is not a registered physics entity.

if(phent_getangvelocity(my, temp) == 0)