guard against pymatgen returning dumb return type