Can animals think logically?