There is no theory of mind, it's a redundant concept. Apes can predict the actions of others as agents of the environment without needing an abstract understanding of what a mind is. Cats are probably able to achieve similar feats. Understanding that other beings and yourself have 'minds' only becomes relevant when the entity in question achieves a certain complexity of language.