Not sure if I agree with this. I'd prefer to check if its empty and return error and then the correct thing; or alternatively use !=. My 2p :)