> I never know what exactly evaluates to true vs false in PHP or JavaScript for example.
You don't have to know if you don't use implicit type-casting. Make it explicit and you won't really have to worry about it.
"Explicit is better than implicit" is part of the Zen of Python for a very good reason.