Add a tertiary statement to convert target to null if 0