Use && instead of &amp;&amp;