title: Java check if boolean is null
body: <p>How do you check if a boolean is null or not? So if I know "hideInNav" is null. How do I stop 
  it from further executing? Something like the below doesn't seem to work but why? </p>
  
  <pre><code>boolean hideInNav = parent.getProperties().get("hideInNav", false);
  String hideNavigation = hideInNav != null ? hideInNav : "";
  </code></pre>