Determine whether an array contains a value