code: protected static function checkOrder($float_min, $float_max)
      {
          if (!is_numeric($float_min) && !is_numeric($float_max)) {
              throw new \InvalidArgumentException('Min and max values must be valid numbers.');
          }
  
          if ($float_min >= $float_max) {
              throw new \InvalidArgumentException('Max value must be greater than min value!');
          }
      }
docs: Check helper for some method to tests their arguments.
  
  If given argument are not numeric or first is greater than the second,
  then Exception is risen.
  
  @throw \InvalidArgumentException If min and max values are not numbers.
  @throw \InvalidArgumentException If min value is greater than max.
  @param  float $float_min
  @param  float $float_max
  @static
  @access protected
  @return void