Why are we using sometimes NULL and sometimes 0?