only validate numeric flag if value is truthy