Only validates if value is set