public function contains($key)
    {
        if ($this->inclusive && in_array($key, array($this->min, $this->max))) {
            return true;
            
        }
        return $key > $this->min && $key < $this->max;
    }