It’s something every dog owner knows — but now we have the science to prove it: Dogs really can tell when we’re happy or sad.