Improved validation of '0'

Signed-off-by: Elliot Condon <e@elliotcondon.com>