I tried that but I didn't get a null value, just a normal object. (I even tried removing my conditional statement and having a constructor which just went "return null;" but I still got an object).
(I've actually altered another part of my code so that I don't need to be able to do this anymore but it would still be interesting to know if its possible...)