Fixed Number validation when 0.0 is used as value

If I use "0.0" string to validate a number, not empty check is returning true and filter_var returns "float(0)" and is validated as false.

You must check if filter_var returns false with type comparisons.

Regards.