Babies can logically reason even before they can talk