You don't need to do this, it happens automatically. The null check is all you have to do.