adds check to make sure device tokens exist