Working check to prevent adding value twice in selectMultiple