Just a bit of fun, wondered which of these people like best for checking if an array is empty in #php? There's (debatably :D) no right answer...

#1 is short
#2 and #3 are very readable

Leaning towards #2 myself!

Hopefully I typed the example code properly lol. xD

@scottwhat I generally use 1, because I'm lazy. Arguably 3 is most correct(tm). Don't use 2.
@Crell @scottwhat why don't you recommend 2?
@luceos @scottwhat empty() has a lot of implicit behavior in it that uses extra weak typing. Lots of coding guides even say to avoid it.
@Crell @luceos I think you've convinced me #3 is best here haha.