Don't return 0 from checkValue if value is empty string