I have a lot of functions with parameter that can be either bool or null. If we simplify my functions I have somethings like this:

```
funtion ($param) {
  if ($param) { 
    //true
  } else { 
    //false 
  }
}

```

However, when I call `function(null);` it obviously goes into else part of condition. So I have to do

```
funtion ($param) {
   if (isset($param)) {
      if ($param) { 
        //true
      } else { 
        //false 
      }
   }
} 

```

for every similar `if` condition, which is sort of annoying. 

So my question is this:

Is there a possibility to do this type of condition with this type of parameter faster and/or without additional function?