This is great advice. Falsey and Thruthy values bit me in the same way. I do things like isEmpty(array) or if I am really defensive isNullOrEmpty(array)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.