That would make things like this not segfault https://gist.github.com/luqmana/6748487