diff --git a/src/Options.php b/src/Options.php index f7b940e21..29a53767d 100644 --- a/src/Options.php +++ b/src/Options.php @@ -40,7 +40,7 @@ abstract class Options implements ParameterObject */ public function __construct($options = null) { - if (is_null($options)) { + if ($options === null) { return; } $this->processArray($options); @@ -136,7 +136,7 @@ public function __get($key) public function __isset($key) { $getter = $this->assembleGetterNameFromConfigKey($key); - return !is_null($this->{$getter}()); + return ($this->{$getter}() !== null); } /**