Function always returned true. Should return false when vertex was not added.