If you are not important to a person who is important to you, move away from them as soon as possible. If you don't your confidence, self esteem and happiness will suffer and you will ultimately lose energy and zest for life.
Take note of who remains in your life when times get tough. Seriously, when you come out the other side of a difficult period in your life, look around you. The people still standing beside you are your true friends.