The point is NYC still has big city problems (one could argue the biggest, because it is the biggest), especially around homelessness and how to correctly provide care for them. That does not mean NYC is not safe.
I have never felt safer living in both Manhattan and Queens, as opposed to the Bay Area or living in Chicago.
Also this fascination with NYC and it's trash situation is such a tired and frankly disingenuous dig at the city. While it is expensive, no argue there, it is not dangerous or filthy. You'd think after having lived there for 15 years you'd have some pride in becoming a New Yorker (lord knows I do and weep for the fact I no longer live there) but maybe the city is better off without you.