Apparently we might be receiving None, so this check should fix it.