private static function isDarwinKernel($kernelName) { return preg_match('/^Darwin/', $kernelName) === 1; }