In nature, one bad apple does have an effect on the rest of the bunch but look in the mirror; you are human. You have the choice to accept negativity or be the exception. Others can contribute to your attitude but YOU ultimately make the choice.
Here is a Haiku I wrote that inspired this post.
Will the apple spoil
While among the unripened?
Choose wisely, Sweet Fruit.