Fix compare

I'd prefer simple `@value.is_a?(Numeric) && second.is_a?(Numeric)` instead of creating a list and iterating over items.