bad check for value was tripped by zero when only wanted to get null