Shoter conditinal. Source: http://davidwalsh.name/javascript-conditionals