Fixed validation of zero value

There was a problem with the validation. It does not accept zero value because array_filter without callback removes all entries of input equal to FALSE.