Which is the most efficient way to determine if a key is present in an array, assuming the array has no NULL values?