guard against invalid team ids