Seeing a lot of this lately:
Wherever possible, convert nested ifs into nested [? ] ternaries. If they span several lines, so much the better.
hah.
Short URL for this post: http://tmblr.co/ZyS4Vy5Q2_6t