classes/binarySearch/BinarySearch.php
private function isKeyRange($key, Array $keys)
    {
        if (empty($keys)) {
            return false;
            
        }
        return \reset($keys)->getKey() <= $key
            && \end($keys)->getKey() >= $key;
    }
private function isKeyRange($key, Array $keys)
    {
        if (empty($keys)) {
            return false;
            
        }
        return \reset($keys)->getKey() <= $key
            && \end($keys)->getKey() >= $key;
    }
private function isKeyRange ( $ key , Array $ keys ) { if ( empty ( $ keys ) ) { return false ; } return \ reset ( $ keys ) -> getKey ( ) <= $ key && \ end ( $ keys ) -> getKey ( ) >= $ key ; }
Returns true if the key is expected to be in the key list

If the key list is a subset of the index, and the key sould not be in
this list, the key is nowhere else in the index.

@param type $key
@param array $keys

@return bool
Returns true if the key is expected to be in the key list