Silly undefined / null checking