public static function isFloat($number, $gt = false, $lt = false) {
        if (is_string($number)) {
            if (trim($number) == '')
                return false;
            // Extract sign if exist
            $sign = '';
            if ($number[0] == '+' || $number[0] == '-') {
                $sign = $number[0];
                $number = substr($number, 1);
            }
            $number = ($sign == '-' ? '-' . $number : $number);
            if (!\is_numeric($number))
                return false;
            $number = (float) $number;
        }elseif (is_int($number)) {
            $number = (float) $number;
        }
        if (!\is_float($number))
            return false;
        if (!$lt && !$gt || $lt && $number <= $lt && $gt && $number >= $gt || !$lt && $gt && $number >= $gt || !$gt && $lt && $number <= $lt)
            return true;
        return false;
    }