Add TypeError for determining if sns or not