In Eternal Sunshine of the Spotless Mind, a character says it's better to have loved and lost than never love at all. In therapy called acceptance and commitment therapy, we learn that pain can tell us what we value most. The memory of your ex-girlfriend wouldn't be painful if you didn't value love so much.