"if it does not contain it yet" is nasty. I think this would be clearer as something like: 

"If the given array does not already contain the given element, this function adds the element to the array and returns `true`. Otherwise, this function does not add the element and returns `false`."