Toyota currently has 11 models, from small to large, which are IIHS top safety picks.
Toyota also has, and has had for many many years, one of the highest predictable reliability scores of any automaker, by just about any measure (JD Power, Consumer Reports, TrueDelta, take your pick)
How can you say Toyota vehicles don't have solid foundations?
They are as safe, if not safer, than BMWs and are much more reliable.
Its not like BMW is anything special when it comes to safety.
Of course you can't compare driving dynamics/pleasure between Toyota and BMW, but please don't imply that Toyota makes crappy cars with lousy foundations, because that's simply not true.