I want to check my Array to see if it already contains a value before I push the value into the array so that I can prevent the array from having the same value twice. I know I can check this in a loop but I was wondering if there was a better way?