Call me a bit paranoid, but would check if the contact is null or not, I know we do this before, but this function should be safe, and we don't know if in a future someone else is going to reuse it, so better be safe :P