Handling zero conditions