Yoda conditions are a lot like the Hungarian notation: it's a "clever" trick that help you catch mistakes for every gazillion time you use it. Just not worth it.
For further actions, you may consider blocking this person and/or reporting abuse
Where hackers, sticks, weekend warriors, pros, architects and wannabes come together
Linters
That's all we need. Linters can easily catch problems like this one. And many others, of course.
So let's forget about Yoda conditions, like we forgot about the Hungarian notation and other hard-to-read conventions.
Or languages designed with code safety in mind, which prohibit these kinds of expressions.
For example in Swift (and other type safe programming languages), the following expression results in a compile time error:
Woah! Neat!
Yoda conditions are a lot like the Hungarian notation: it's a "clever" trick that help you catch mistakes for every gazillion time you use it. Just not worth it.