Return non-zero on non-valid data