Creating a Simple IsNullOrFalse method for both a method and its caller
<p>I find myself doing this a lot.</p>

<pre><code>if( obj == null || !obj.SomeMethodThatReturnsABoolean() ) {
  // then do this
}
</code></pre>

<p>I mean, I just see it cluttering up code in a lot of places. It isn't really a bad thing, but what's the fun of syntactical sugar if you can't sprinkle it around here and there where it makes things slimmer? </p>

<p>So I tried to just make a very humble little method, <code>IsNullOrFalse</code>. The idea is that it will test for what was passed in, see if it is null, and if not, it will run the method, and return the boolean result.</p>

<p>This has actually proven a lot harder than I imagined. I don't really need this to continue on in any project, but at this point I have gone from curious to intrigued. </p>

<p>Has anyone else done something like this? The problem I am getting is that I cannot pass in something that does not exist that contains a method.</p>
