making sure we don't release nil