how to avoid getting heartbroken