Get first item in array and use as a boolean value with JavaScript How do I get the first item of my array and use that as a boolean?