code: function checkPhpIniOn($name)
      {
          $value = ini_get($name);
          if (empty($value)) {
              return false;
          }
  
          return ((int) $value === 1 || strtolower($value) === 'on');
      }
docs: Checks if PHP configuration option (from php.ini) is on.
  @param string $name configuration option name.
  @return bool option is on.