Fix `Config::getAndDefine()`

Fix `Config::getAndDefine()`

- Change `$val` check to `is_null` as current with return false for
  falsy values
- Add return value to end for the `get` in `getAndDefine()`